{{ define "main" }}

<nav class="post-pagination">
  {{if .Next}}
  <a class="newer-posts" href="{{.Next.Permalink}}">
    下一页<br>{{.Next.Title}}
  </a>
  {{else}}
  <a class="newer-posts">
    最后一页
  </a>
  {{end}}
  
  {{if .Prev}}
  <a class="older-posts" href="{{.Prev.Permalink}}">
      上一页<br>{{.Prev.Title}}
  </a>
  {{else}}
  <a class="older-posts">
    最早一页
  </a>
  {{end}}
</nav>

<hr>

<article class="markdown">
  <h1>
    <a href="{{ .RelPermalink }}">{{ .Title }}</a>
  </h1>
  {{ partial "docs/post-meta" . }}
  <p>
    {{- .Content -}}
  </p>
</article>

<hr>

<nav class="post-pagination">
  {{if .Next}}
  <a class="newer-posts" href="{{.Next.Permalink}}">
    下一页<br>{{.Next.Title}}
  </a>
  {{else}}
  <a class="newer-posts">
    最后一页
  </a>
  {{end}}
  
  {{if .Prev}}
  <a class="older-posts" href="{{.Prev.Permalink}}">
      上一页<br>{{.Prev.Title}}
  </a>
  {{else}}
  <a class="older-posts">
    最早一页
  </a>
  {{end}}
</nav>

{{ end }}

{{ define "toc" }}
  {{ partial "docs/toc" . }}
{{ end }}
